<%- include header%>
	<% if(user&&(user.name == blog.name)){%>
	<p><span>
			<a class="edit" href="/edit/<%= blog.name%>/<%= blog.time.day%>/<%= blog.title%>">编辑</a>
			<a class="edit" href="/remove/<%= blog.name%>/<%= blog.time.day%>/<%= blog.title%>">删除</a>
	</span></p>
	<%}%>
	<%var flag=1%>
	<%=user.name%><%=blog.name%>
	<%if(user&&(user.name!=blog.name)){%>
		<%=user.name%><%=blog.name%>
		<%if((blog.reprintInfo.reprint_from!=undefined)&&(user.name==blog.reprintInfo.reprint_from.name)){%>
			<%flag=0}%>
		<%if(blog.reprintInfo.reprint_to!=undefined){%>
		<%blog.reprintInfo.reprint_to.forEach(function(reprintTo,index){%>
			<%if(user.name == reprintTo.name){%>
				<%flag=0%>
		<%}})%>
		<%}%>
	<%}else{flag=0} if(flag){ %>
		<%=flag%>
		<span><a class="edit" href="/reprint/<%=blog.name%>/<%=blog.time.day%>/<%=blog.title%>">转载</a></span>
	<%}%>
	<p class="info">
		作者:<a href="/u/<%= blog.name%>"><%= blog.name%></a> |
		日期:<%= blog.time.minute %>
		<%if(blog.reprintInfo.reprint_from){%>
		<a href="/u/<%=blog.reprintInfo.reprint_from.name%>/<%=blog.reprintInfo.reprint_from.day%>/<%=blog.reprintInfo.reprint_from.title%>">原文链接</a><%}%>
	<%-include tags%>
	</p>
	<p><%- blog.blog %></p>
	<%=blog.blog%>	
	<%- include readsum%>
<%- include comment%>
<%- include footer%>